#依赖jdk17环境
FROM openjdk:17

# 指定容器工作目录为 apps
WORKDIR /apps
#对外暴露8084
EXPOSE 8084
#复制communications-service到docker容器中并命名为inspection.jar
COPY inspection-service.jar inspection.jar
#执行命令
ENTRYPOINT ["java", "-jar", "inspection.jar", "--spring.profiles.active=dev"]
